The condictio indebiti is an action in civil (Roman) law whereby a plaintiff may recover what he has paid the defendant by mistake. This action does not lie, 1. if the sum was due ex aequitate, or by a natural obligation; 2. if he who made the payment knew that nothing was due, for qui consulto dat quod non debet, praesumitur donare (who gives purposely what he does not owe, is presumed to make a gift).[1][2][3]
The action is extant in civil (Roman) or hybrid law regimes, e.g. South Africa and Scotland .[4]